import urllib

code = 'HIG'
filename1 = code + ".raw"

url = "http://ichart.yahoo.com/table.csv?s=" + code
content = urllib.urlopen(url).read()

f1 = open(filename1, "w")
f1.write(content)
f1.close()

f1.close()